//获取Token参数
	var Request = new Object();
	Request = GetRequest();
	var token= Request['Token'];
	
$(function(){
	$('#combox').combobox({
		url:'action/master/combox/list.json?Token=' + token,
		valueField:'COMPID',
		textField:'COMPNAME',
		editable:false,
		width:181
	});
});

$(function(){
	$('#comboxtree').combotree({
		url : 'action/master/combox/tree.json?Token=' + token,
		onBeforeSelect : function(node)
		{
			//获取节点是否是末级
			var b = $('#comboxtree').tree('isLeaf', node.target);
			if (!b)
			{
				//不是末级展开下级
				$(this).tree('toggle', node.target);
			}

		},
		onDblClick: function(node)
		{
//			alert(node.text);
//			alert(node.id);
			$('#comboxtree').combo('hidePanel')
		},
		onHidePanel:function()
		{
			$('#comboxtree').combo('showPanel')
		}
	});
});
